package net.zjitc.service.impl;

import net.zjitc.dao.AdminCateGorySecondDao;
import net.zjitc.dao.impl.AdminCateGorySecondDaoImpl;
import net.zjitc.pojp.CateGory;
import net.zjitc.pojp.CateGorySecond;
import net.zjitc.service.AdminCateGorySecondService;

import java.util.List;

/**
 * Created by Administrator on 2017/11/15.
 */
public class AdminCateGorySecondServiceImpl implements AdminCateGorySecondService {
    AdminCateGorySecondDao dao=new AdminCateGorySecondDaoImpl();
    public List<CateGorySecond> findAll() {
        return dao.findAll();
    }

    public int insert(CateGorySecond cateGorySecond) {
        return dao.insert(cateGorySecond);
    }

    public CateGorySecond findByCSid(String csid) {
        return dao.findByCSid(csid);
    }

    public int update(CateGorySecond cateGorySecond) {
        return dao.update(cateGorySecond);
    }
}
